[#ftl]
[@define "agile.MetadataPropertiesEditorPane" "agile.MetadataEditorPane"]
	category:"properties"
	,title:"Properties"
	,constructor:function(){		
		this.subscribe("agile.widget.changed",function(dummy,editorName,value,attrName){
			var editor = this.editorWidgets[editorName];
			if(editor){				
				editor.reset1(attrName?attrName:"value",value);				
			}			
		});		
	}
	,setEditorValue:function(widget){		
		
		var attributes = this.getAttributes(widget);
		
//		console.log(this.declaredClass,"setEditorValue.....attributes=",attributes,",this.editorWidgets=",this.editorWidgets);
		
		var editors = this.editorWidgets;		
		for (var name in editors){	
//			console.log("@@@@@@@@@",name,widget.metadata(name));
			if(attributes[name]){
				var value = widget.metadata("parameters." + name);				
				editors[name].reset1("value",value == null?null:attributes[name].format(value));				
			}
		}		
	}
[/@] 
